import intercept from '../utils/request'
export const order = (data) => {
    return intercept({
      url: '/webapi/order/list',
      method: 'post',
      data
    })
  }
  // 订单支付
  export const orderpay = (data) => {
    return intercept({
      url: '/webapi/order/pay',
      method: 'post',
      data
    })
  }
  // 订单取消
  
  export const ordercancel = (data) => {
    return intercept({
      url: '/webapi/order/cancel',
      method: 'post',
      data
    })
  }
  
  // 订单退款
  export const orderrefund = (data) => {
    return intercept({
      url: '/webapi/order/refund',
      method: 'post',
      data
    })
  }